<?php 

include '../function.php';
var_dump($_FILES);

if(is_uploaded_file($_FILES['userfile']['tmp_name'])){
	

	$fileName = time().".png";
	$date = date('Y-m-d');
	$destinUrl = "./upload/".$date."/".$fileName;

	is_dir('./upload/'.$date) || mkdir('./upload/'.$date,TRUE);

	move_uploaded_file($_FILES['userfile']['tmp_name'],$destinUrl);
}else{
	echo '你的操作不合法';
};



$obj = new Uplaod;
$obj->up();
 ?>